package com.dynamic.idea.quick.develop.plugin.entity;

import com.dynamic.idea.quick.develop.plugin.entity.base.MethodEntity;
import com.dynamic.idea.quick.develop.plugin.entity.base.ProjectStructProviderEntity;
import com.dynamic.idea.quick.develop.plugin.entity.base.ProjectStructProviderImplEntity;

import java.io.Serializable;

/**
 * 项目结构
 */
public class ProjectStructEntity implements Serializable {

    /** 实现的项目对象 */
    private ProjectStructProviderImplEntity providerImplEntity;

    /** 接口定义对象 */
    private ProjectStructProviderEntity providerEntity;

    /** 新加的方法实体 */
    private MethodEntity methodEntity;

    /**
     * 是否存在接口定义
     * @return
     */
    public boolean isExistProvider(){
        if (providerEntity==null){
            return false;
        }
        return true;
    }

    public ProjectStructProviderImplEntity getProviderImplEntity() {
        return providerImplEntity;
    }

    public void setProviderImplEntity(ProjectStructProviderImplEntity providerImplEntity) {
        this.providerImplEntity = providerImplEntity;
    }

    public ProjectStructProviderEntity getProviderEntity() {
        return providerEntity;
    }

    public void setProviderEntity(ProjectStructProviderEntity providerEntity) {
        this.providerEntity = providerEntity;
    }

    public MethodEntity getMethodEntity() {
        return methodEntity;
    }

    public void setMethodEntity(MethodEntity methodEntity) {
        this.methodEntity = methodEntity;
    }
}

